package com.weizhi.server.enums;

public enum ResponseCode {
    SUCCESS(1, "SUCCESS"),
    ERROR(0, "ERROR"),
    NEED_LOGIN(20, "NEED_LOGIN"),
    ILLEGAL_ARGRMENT(30, "ILLEGAL_ARGRMENT");
    private final int code;
    private final String msg;
    ResponseCode(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }
}
